package com.collectplus.express;

import android.annotation.SuppressLint;
import android.os.Bundle;

/**
 * 欢迎界面
 *
 * @author coffee <br>
 * 2016-11-5下午5:13:34
 */
public class SplashActivity extends BaseActivity2 {

    private Runnable runnable = null;

    @SuppressLint("MissingSuperCall")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void findViewById() {
        setContentView(R.layout.splash);
        super.findViewById();
        runnable = new Runnable() {
            @Override
            public void run() {
                startActivity(MainActivity.class);
                finish();
            }
        };
        getHandler().postDelayed(runnable, 1000);
    }

    @Override
    protected void onDestroy() {
        getHandler().removeCallbacks(runnable);
        super.onDestroy();
    }
}
